﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CodeList.aspx.cs" Inherits="FisheryPlatform.Web.Admin.ShareCode.CodeList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register TagName="Style" TagPrefix="Menu" Src="~/Modules/Menu/StyleMenu.ascx" %>
<%@ Register TagName="Left" TagPrefix="Menu" Src="~/Modules/Menu/LeftMenu.ascx" %>
<%@ Register TagName="Header" TagPrefix="Menu" Src="~/Modules/Menu/HeaderMenu.ascx" %>
<%@ Register TagName="Footer" TagPrefix="Menu" Src="~/Modules/Menu/FooterMenu.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <Menu:Style runat="server" ID="menuStyle" Title="Hi"></Menu:Style>
</head>
<body>
    <div class="wrapper">
        <Menu:Header runat="server" ID="menuHeader" />
        <div class="content">
            <Menu:Left runat="server" ID="menu_Left" />
            <div class="right">
                <div class="top">
                    类别管理>></div>
                <div class="bottom">
                    <form id="form2" runat="server">
                    <div>
                        <a href="/ShareCode/CodeList.aspx?cid=<%= ClassId%>">返回</a>&nbsp;|&nbsp;<a href="/ShareCode/CodeAdd.aspx?cid=<%= ClassId%>&pid=<%= Request.QueryString["pid"] %>"
                            target="_blank">增加代码</a>&nbsp;|&nbsp; <a href="javascript:;" onclick="jDoc.reload()">
                                刷新</a>
                    </div>
                    <table class="list" cellspacing="0" cellpadding="0">
                        <tr>
                            <th style="width: 100px;">
                                代码ID
                            </th>
                            <th style="width: 150px;">
                                中文名称
                            </th>
                            <th style="width: 100px;">
                                英文名称
                            </th>
                            <th style="width: 100px;">
                                操作
                            </th>
                        </tr>
                        <% foreach (var item in ShareCodeList)
                           {%>
                        <tr>
                            <td>
                                <%= item.CodeID %>
                            </td>
                            <td>
                                <a href="CodeList.aspx?cid=<%= Request.QueryString["cid"]+"&pid="+item.CodeID %>">
                                    <%= HttpUtility.HtmlEncode(item.Name) %></a>
                            </td>
                            <td>
                                <%= HttpUtility.HtmlEncode(item.NameEn) %>
                            </td>
                            <td>
                                <a href="/ShareCode/CodeAdd.aspx?cid=<%= ClassId%>&pid=<%= item.ParentId %>&id=<%=item.CodeID %>"
                                    target="_blank">修改</a>
                            </td>
                        </tr>
                        <%} %>
                    </table>
                    </form>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
